package com.pictures.mapper;

import com.pictures.pojo.Content;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ContentMapper {

    // 查询所有分享
    List<Content> getContents();

    //根据id查询分享
    Content getContentById(@Param("id") Long id);

    //新增分享
    void addContent(Content content);

    //根据id删除分享
    int deleteContentById(@Param("id") Long id);

    //更新分享
    int updateContent(Content content);

}
